<div class="AdminMarket">
	<h1 class="list">{{!Market config}}</h1>
	<ul class="pre">
		<li><a href="/admin-AutoAdminMarketManufacturer/">{{!Edit manufacturers}}</a></li>
		<li><a href="/admin-AutoAdminMarketCategory/">{{!Edit tree of categories}}</a></li>
		<li><a href="/admin-AutoAdminMarketItemGroup/">{{!Edit item groups}}</a></li>
		<li><a href="{{action}}?mode=fields">{{!Edit list of possible features for each category}}</a></li>
		<li><a href="{{action}}?mode=field_enums">{{!Edit or join enumerateable values for features}}</a></li>
		<li><a href="/admin-AdminMarket/?mode=rewrites">{{!Add rewrite rules}}</a></li>
		<li><a href="/admin-AutoAdminCartPaymentMethod/">{{!Edit payment methods}}</a></li>
		<li><a href="/admin-AutoAdminCartState/">{{!Edit cart states}}</a></li>
		<li><a href="/admin-AdminMarket/?mode=mail_templates">{{!Add mail templates}}</a></li>
	</ul>
	{{if market_categories.length}}
	<h1 class="list">{{!Search market items}}</h1>
	{{include "controllers/adminpanel/AdminMarket/searchitems__form"}}
	<h1 class="list">{{!Market items}}</h1>
	<ul class="pre">
		{{foreach c in market_categories}}
		<li style="margin-left: {{MUL1(30):c.level}}px"><a href="/admin-AutoAdminMarketItem/?category_id={{c.id}}">{{c.name}}</a> ({{c.cnt}})</li>
		{{/foreach}}
	</ul>
	{{/if}}
	<h1 class="list">{{!Market carts}}</h1>
	<div style="width: 350px;">
	<table class="table">
	<thead>
		<tr><th>{{!State}}</th><th>{{!Count}}</th></tr>
	</thead>
	<tbody>
	{{foreach cs in cart_states}}
	<tr>
		<td><a href="/admin-AutoAdminCart/?state_id={{cs.id}}">{{cs.name}}</a></td>
		<td>{{cs.cnt}}</td>
	</tr>
	{{/foreach}}
	</tbody>
	</table>
	</div>
	<h1 class="list">{{!Import/export}}</h1>
	<p>{{!For import-export you need to configure which fields to work with and if you are doing export then import, fields must match}}</p>
	<ul>
		<li><a href="/admin-AdminSpreadsheets-upload/">{{!Load excel file for import}}</a></li>
		<li><a href="/admin-AdminMarket-import1/">{{!Import from previously loaded}}</a></li>
		<li><a href="/admin-AdminMarket-export1/">{{!Export to excel}}</a></li>
	</ul>
</div>
